package service.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import pojo.Customer;
import service.CustomerManager;

public class CustomerManagerImpl implements CustomerManager{
	private List<Customer> customers = new ArrayList<Customer>();

	@Override
	public Customer addCustomer(Customer customer) {
		customers.add(customer);
		return customer;
	}

	@Override
	public List<Customer> findAll() {
		return customers;
	}

//	@Override
//	public List<Customer> addCustomers(Customer customer) {
//		synchronized (customers) {
//			customer.setId(UUID.randomUUID().toString());
//			customers.add(customer);
//		}
//		return customers;
//	}

}
